#include "entity.h"

Entity::Entity(QObject *parent) :
    QObject(parent)
{
    emit(popped());
}

bool Entity::isWalkable(Character::CharType type)
{
    if(m_walkable.value(type))
        return true;
    return false;
}

QPixmap Entity::pixmap()
{
    return QPixmap();
}

QDataStream& operator <<(QDataStream &stream, const Entity* e) {
    return stream << e->data();
}

QDataStream& operator >>(QDataStream &stream, Entity * e) {
    QByteArray data;
    stream >> data;
    e->setData(data);
    return stream;
}
